﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TaoLeH.Models.Enum
{
    /// <summary>
    /// 返回码枚举
    /// 作者:leev
    /// 时间:2018-12-18
    /// </summary>
    public enum ResultEnum
    {
        Success = 0,
        Fail = 400,                     //通用错误，前端拿到400直接提示message
        ServiceException = 500,         //服务异常

        NoData = 1000,                  //无请求数据
        ParamError = 1001,              //缺少请求参数
        AnalyticError = 1002,           //解析数据失败
        SignError = 1003,               //签名验证失败
        TimeError = 1004,               //请求失效过期
        DecError = 1005,                //解密失败
        ApiClose = 1006,                //接口已关闭
        NoService = 1007,               //服务不存在
        
        OtherFail = 2000,               //其他失败
    }
}
